package com.mrtan.service;

import com.mrtan.bean.Supplier;
import com.mrtan.bean.SupplierProduct;
import com.mrtan.dto.MCDto;
import com.mrtan.vo.*;

import java.util.List;

/**
 * 供应商
 * @author 李聪
 * @version 2023/12/8
 */
public interface SupplierService {
    //添加供应商
    int addSupplier(SupplierVO supplierVO);
    //查所有供应商产品
    List<SupplierProduct> selectAll(SupplierProductVO supplierProductVO);

    //查所有供应商
    List<Supplier> selectAllSupplier();

    int addProduct(AddSupplierProductVO addSupplierProductVO);

    List<Supplier> findAllSupplier(SupplierVO supplierVO);

    int romove(int productid, int supplierid);

    int updateproduct(UpdateSupplierProduct updateSupplierProduct);

    void updateQuantity(PurchaseOrderVO purchaseOrderVO);

    int getSupplierCount();

    List<MCDto> getModelAndCount(Integer id);
}






